import requets from "@/services"


export const getsysuserListAPI = () => {
  return requets.get({
    url: 'logic/baseInfo/sysUser/roleList '
  })
}

export const getsysUserfindAPI = (baseInfo?: any) => {
  return requets.post({
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    url: 'logic/baseInfo/sysUser/find',
    data: baseInfo
  })
}


// 页面所有表格的api
export const getPageTablefindAPI = (pageName: string, mainMenuName: string, checkName?: string, data?: any) => {
  return requets.post({
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    url: `logic/${mainMenuName}/${pageName}/${checkName}${mainMenuName === 'baseInfo' ? 'find' : 'list'}`,
    data
  })
}
// baseInfo
// 页面所有下拉菜单的api
export const getPageSelectListAPI = (pageName: string, mainMenuName: string, seleteText: string) => {
  return requets.get({
    url: `logic/${mainMenuName}/${pageName}/${seleteText} `
  })
}

// 页面创建api

// 页面中删除api

// 页面中更新的api
